CSharpTest.Net
ExistingLogAction Property
See Also  Example Send Feedback Download Help File
CSharpTest.Net.BPlusTree Assembly > CSharpTest.Net.Collections Namespace > BPlusTree.OptionsV2<TKey,TValue> Class : ExistingLogAction Property

Glossary Item Box

Defines the action to perform when opening a BPlusTree with an existing log file.

Syntax

Visual Basic (Declaration) 
Public Shadows Property ExistingLogAction As ExistingLogAction
C# 
public new ExistingLogAction ExistingLogAction {get; set;}

Example

BPlusTree/BPlusTree.Test/BasicTestsVersion2.cs

C#Copy Code
var options = (BPlusTree<int, string>.OptionsV2)Options;

Assert.AreEqual(ExistingLogAction.Default, options.ExistingLogAction);
options.ExistingLogAction = ExistingLogAction.Ignore;
Assert.AreEqual(ExistingLogAction.Ignore, options.ExistingLogAction);

Assert.AreEqual(-1, options.TransactionLogLimit);
options.TransactionLogLimit = int.MaxValue;
Assert.AreEqual(int.MaxValue, options.TransactionLogLimit);
VB.NETCopy Code
Dim options As var = DirectCast(Options, BPlusTree(Of Integer, String).OptionsV2)

Assert.AreEqual(ExistingLogAction.[Default], options.ExistingLogAction)
options.ExistingLogAction = ExistingLogAction.Ignore
Assert.AreEqual(ExistingLogAction.Ignore, options.ExistingLogAction)

Assert.AreEqual(-1, options.TransactionLogLimit)
options.TransactionLogLimit = Integer.MaxValue
Assert.AreEqual(Integer.MaxValue, options.TransactionLogLimit)

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys